//
//  LFCacheTool.h
//  AntMarket
//
//  Created by LF on 2017/3/21.
//  Copyright © 2017年 LF. All rights reserved.
//

#import <Foundation/Foundation.h>


#define TagTextKey @"TagTextKey"

#define USER_ACCOUNT_KEY @"USER_ACCOUNT_KEY"
#define HOME_AD_KEY @"HOME_AD_KEY"

#define REQUEST_LAST_TIME @"REQUEST_LAST_TIME"

#define USER_LOCATION  @"USER_LOCATION1"

#define AUDIO_UPLOAD_KEY @"audio_upload_key"

@interface LFCacheTool : NSObject

+ (instancetype) sharedCacheTool;

// 缓存微信用户的个人信息
+ (void)cacheWXUserInfo:(id)info;
+ (id) getWXUserInfo;

// 缓存微信的token
+ (void)CacheWXToken:(NSDictionary *)dic;
+ (NSDictionary *)getWXToken;


// 缓存用户信息
+ (void) cacheUserInfo:(NSDictionary *)dic;
+ (NSDictionary *) getUserInfo;
+ (void) removeUserInfo;

// 缓存用户位置
+ (void)cacheUserLocation:(NSString *)city;
+ (NSString *)location;


+ (void) cacheADInfo:(NSMutableDictionary *)dic;
+ (NSMutableDictionary *) getADInfo;
+ (void) removeADInfo;


+ (void) lf_cacheObject:(id)object forKey:(NSString *)key;
+ (  id) lf_getCacheObjectFromKey:(NSString *)key;
+ (void) removeObjectForKey:(NSString *)key;

// 缓存信息
+ (void) clearCaches:(void(^)())success;
+ (CGFloat) getCacheSize;
+(void)ClearMovieFromDoucmentsThroughly:(BOOL)throughtly;

+ (void) cacheTagText:(NSString *) tagText;
+ (NSArray *) lf_getLocalTags;

@end
